package com.ofood.springcloud.service;

import com.ofood.springcloud.domain.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "ofood-food-provider")
public interface IFoodFeignService {
    @GetMapping("/food/get/{foodId}")
    public Result getFoodById(@PathVariable("foodId") long foodId);

    @GetMapping("/food/get/timeout")
    public String getFoodTimeout();
}
